	
    function price($field, $value, $fieldinfo) {
		extract($fieldinfo);
		$setting = string2array($setting);
		$size = $setting['size'];		
		$ushop = getcache('ushop_setting','ushop');
		$market_price_rate = $ushop['market_price_rate'];
		$groupprice = json_encode($ushop['groupprice']);
		
		if(!$value) $value = $defaultvalue;
		return "<input type='text' name='info[$field]' id='$field' value='$value' class='input-text' size='$size'> <input type='button' class='button' value='计算市场价格/会员组价格' onclick='market_price()'/>
		<script>
		function market_price(){
			var price = $(\"#$field\").val();
			$(\"#market\").val(price*$market_price_rate);
			var groupprice = $groupprice;
			$.each( groupprice, function(group,prices){
 					$('#member'+ group).val(price*prices);
			});
			}
		
		</script>
		";
	}